//
//  CCEditorAction.h
//  Cocos2DEditor
//
//  Created by waver on 10-6-21.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "ActionTools.h"


@class CAnimationPlayW;


@interface CCEditorAction : NSObject {
	
	//role file name 
	NSString * __fileName;
	
	//the Role instance read frome the __fileName;
	void *		__currentRole;
	
	//store all animation action in the __currentRole to __AnimationArray;
	NSMutableArray * __AnimationArray;
	
	NSMutableArray * __FrameArray;
	
	
	NSMutableArray * __imageNameArray;
	
	NSMutableArray * __timeArray;
	
	//vector<Action*>  ActionVec;
}

@property (nonatomic,readwrite,retain)NSMutableArray * __imageNameArray;
@property (nonatomic,readwrite,retain)NSMutableArray * __AnimationArray;

-(id)InitAction:(NSString*) fileName;

-(void)InitArray;

-(void)AnalyseFrame;

//-(void)CreateAnimation:(vector<Frame*> & )FrameArray nameAni:(NSString*)AniName;

//input the animation Index in editor ,back the animation;doubleTime :control the play frame speed  
-(CCAnimation*)AnimationInEditor:(int)aniIndex doubleTime:(int)times;


@end
